<!DOCTYPE html>
<style>
.wrapper {
    float: left;
}
.nowrap {
    white-space: nowrap;
}
</style>
<p>crbug.com/561997: Trailing space in a no-wrap span should not prevent setting a line-break on that span.</p>
<div class="wrapper"><span>All text should be on same</span> <span class="nowrap">line. </span></div>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
</script>

